<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						// #ifdef APP-PLUS
							Vue.prototype.CustomBar = 0;
						// #endif
						// #ifdef H5
							Vue.prototype.CustomBar = e.statusBarHeight + 44;
						// #endif
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 44;
					};
					// #endif
			
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		
			
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
					
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	page {
		-webkit-overflow-scrolling: touch; //ios滑动不流畅
		height: 100%;
		background: $u-bg-color;
		width: 100%;
		font-size: 28rpx;
		font-family: NotoSansHans-Bold;
		word-break: break-all; //英文文本不换行
		color: $u-content-color;
	}
	::-webkit-scrollbar {
		width: 0;
		height: 0;
		color: transparent;
		display: none;
	}
	.u-font-bold{
		font-weight: bold;
	}
</style>
